-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Adaptive allocations improvements #126307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Pinging @elastic/ml-core (Team:ML) |
| * @param reason may contain a human-readable explanation for the current state | ||
| * @param startTime the time when the assignment was created | ||
| * @param maxAssignedAllocations used for adaptive allocations | ||
| * @param maxAssignedAllocations keeps track of the maximum number of allocations used for this assignment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what this is exactly used for. It looks like only for recording, not for decision making. Definitely not used by adaptive allocations.
| } | ||
| if (assignmentStates.get(deploymentId) != AssignmentState.STARTED) { | ||
| logger.debug( | ||
| "adaptive allocations scaler: skipping scaling [{}] because it is in [{}] state.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating a model that's not in the STARTED state leads to errors in the logs.
| this.nodes = nodes.stream().sorted(Comparator.comparing(Node::id)).toList(); | ||
| this.deployments = deployments.stream().sorted(Comparator.comparing(AssignmentPlan.Deployment::deploymentId)).toList(); | ||
| this.deployments = deployments.stream() | ||
| .filter(deployment -> deployment.allocations() > 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these aren't filtered, computePlan will
Plan with at least one allocation for previously assigned models
💔 Backport failed
You can use sqren/backport to manually backport by running |
various small fixes